export const routes = [
  {
    path: '/',
    name: 'Layout',
    component: () => import('@/layout/index.vue'),
    redirect: '/dashboard',
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: () => import('@/views/dashboard/index.vue'),
        meta: { title: '首页', icon: 'House' }
      },
      {
        path: 'profile',
        name: 'Profile',
        component: () => import('@/views/profile/index.vue'),
        meta: { title: '个人信息', icon: 'User' }
      },
      {
        path: 'health-records',
        name: 'HealthRecords',
        component: () => import('@/views/health-records/index.vue'),
        meta: { title: '健康记录', icon: 'Document' }
      },
      {
        path: 'family-members',
        name: 'FamilyMembers',
        component: () => import('@/views/family-members/index.vue'),
        meta: { title: '家庭成员', icon: 'UserFilled' }
      }
    ]
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/Login.vue'),
    meta: { title: '登录' }
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('@/views/Register.vue'),
    meta: { title: '注册' }
  }
] 